package com.qf.web.blog.controller;

import com.qf.api.blog.service.SiteInfoService;
import com.qf.api.front.vo.WebsiteInfoVO;
import com.qf.core.response.ResponseResult;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: sin
 * @Date: 2025/5/30 23:55
 * @Description:
 **/
@Tag(name = "01.站点管理")
@RestController
@RequestMapping("/blog/siteInfo")
public class SiteController {
    @Resource
    private SiteInfoService siteInfoService;

    @GetMapping
    public ResponseResult<WebsiteInfoVO> getSiteInfo() {
        return ResponseResult.success(siteInfoService.getWebSiteInfo());
    }
}
